print 'koro.modules.agenda'

from koro.core.model import ModuleInfo
from koro.modules.agenda import context,model,ui,__version__
from koro.modules.agenda.ui import pages


info=ModuleInfo(dependency=None,
                description='Modulo per la gestione degli impegni. ',
                version=__version__.VERSION_STRING,
                weight=100)

def id_map():
    return {ui.ID_AGENDA_PAGE:context.AgendaContext}

def context_map():
    return {context.AgendaContext:(pages.AgendaPage,(),{})}

def name_map():
    return {'AGENDA':context.AgendaContext}

def or_mapping(mapper,relation,metadata,Table):
    mapper(model.Agenda,Table('impegni',metadata,autoload=True))

def menu(menubar):
    ui.do_menu(menubar)

def option_view():
    return None
    